﻿Imports DotNetNuke.Entities.Content.Common
Imports DotNetNuke.Entities.Content

Namespace Components.Taxonomy

    Public Class Terms


        Public Sub ManageArticleTerms(ByVal objArticle As Article, ByVal objContent As ContentItem)

            RemoveArticleTerms(objContent)

            For Each term As Object In objArticle.Terms
                Util.GetTermController().AddTermToContent(term, objContent)
            Next
        End Sub

        Public Sub RemoveArticleTerms(ByVal objContent As ContentItem)
            Util.GetTermController().RemoveTermsFromContent(objContent)
        End Sub

    End Class

End Namespace